//
//  CFinfoModel.m
//  marrymarry
//
//  Created by lsj on 16/9/23.
//  Copyright © 2016年 cf. All rights reserved.
//

#import "CFinfoModel.h"

@implementation CFinfoModel
-(NSMutableArray *)myKeyArry
{
    if (!_myKeyArry) {
        _myKeyArry = [[NSMutableArray alloc]initWithArray:@[NICHEN_KEY,WANT_MARRY_TIME_KEY,BIRTH_TIME_KEY,MARRY_STATUS,HAVE_CHILD_KEY,LOVE_HISTORY_KEY,STUDY_KEY,WORK_KEY,XINZUO_KEY,TALL_KEY,WEIGHT_KEY,BLOODKIND_KEY,WORK_PLACE_KEY,JIGUAN_KEY,HUJI_KEY,MIN_ZU_KEY,XIN_YANG_KEY,SMOKE_KEY,DRUNK_KEY]];

    }
    return _myKeyArry;
}

-(NSMutableArray *)otherMyKeyArry
{
    if (!_otherMyKeyArry) {
        _otherMyKeyArry = [[NSMutableArray alloc]initWithArray:@[USERID,@"realName",@"status",NICHEN_KEY,WANT_MARRY_TIME_KEY,BIRTH_TIME_KEY,MARRY_STATUS,HAVE_CHILD_KEY,LOVE_HISTORY_KEY,STUDY_KEY,WORK_KEY,XINZUO_KEY,TALL_KEY,WEIGHT_KEY,BLOODKIND_KEY,WORK_PLACE_KEY,JIGUAN_KEY,HUJI_KEY,MIN_ZU_KEY,XIN_YANG_KEY,SMOKE_KEY,DRUNK_KEY]];
        
    }
    return _otherMyKeyArry;
}


-(NSMutableArray *)moneyArry
{
    if (!_moneyArry) {
        _moneyArry = [[NSMutableArray alloc]initWithArray:@[EARN_MONEY_KEY,CUNKUAN_MONEY_KEY,HOUSE_KEY,CAR_PRICE_KEY,SIJICHE_REN_ZHEN_KEY,HOUSE_REN_ZHEN_KEY]];
    }
    return _moneyArry;
}


-(NSMutableArray *)otherArry
{
    if (!_otherArry) {
        _otherArry = [[NSMutableArray alloc]initWithArray:@[OTHER_WANT_MARRYTIME_KEY,WORK_PLACE_KEY,STUDY_KEY,OLD_KEY,TALL_KEY,LOOKLIKE_KEY,HUJI_KEY,EARN_MONEY_KEY,MARRY_STATUS,AFTER_MARRY_KEY,FIND_OTHER_PEOPLE_MUST_BE_KEY,OTHER_DRINK_KEY,OTHER_SOMKE_KEY]];
        
    }
    return  _otherArry;
}
-(NSMutableArray *)marryGNKeyArry
{
    if (!_marryGNKeyArry) {
        _marryGNKeyArry = [[NSMutableArray alloc]initWithArray:@[MARRY_WITH_CHILD_KEY,MARRY_MOVE_WITH_LOVE_KEY,MARRY_TAIDU_KEY,MARRY_AFTER_KEY,MARRY_AFTER_FRIEND_KEY,MARRY_AFTER_WANT_CHILD_KEY,MARRY_AFTER_CHILD_EDU_KEY,MARRY_FIND_OTHER_NINGHT_KEY,MARRY_AFTER_HOME_WORK_KEY,MARRY_FAMILY_CLEAN_KEY,MARRY_AFTER_BUY_GUANNIAN_KEY,MARRY_FAMILY_IMPORTANT_KEY,MARRY_WORK_TAIDU_KEY,MARRY_LIKE_PET_KEY,MARRY_WITH_PARENTS_KEY,MARRY_HOPE_FRIEND_KEY,MARRY_TWO_MOSTIMPORTANT_KEY,MARRY_ONE_MOSTIMPORTANT_KEY]];
        
    }
    return _marryGNKeyArry;
}

-(NSMutableArray *)thinkKeyArry
{
    if (!_thinkKeyArry) {
        _thinkKeyArry = [[NSMutableArray alloc]initWithArray:@[THINK_YOUR_SEX_KEY,THINK_SEX_WHATWAY_KEY,THINK_SEX_EXP_KEY,THINK_SEX_TAIDU_KEY,THINK_SEX_NEW_ZISHI_KEY,THINK_SEX_LOVE_KEY,FIND_OTHER_PEOPLE_MUST_BE_KEY,THINK_INTEREST_KEY,THINK_CAN_PARTNER_KEY]];
        
    }
    return  _thinkKeyArry;
}
-(NSMutableArray *)dateKeyArry
{
    if (!_dateKeyArry) {
        _dateKeyArry =[[NSMutableArray alloc]initWithArray:@[FIRST_MEET_DO_KEY,FIRST_MEET_WHOPAY_KEY,FIRST_MEET_LIKEPLACE_KEY,FIRST_MEET_ROMANCE_KEY,FIRST_MEET_INTEREST_TALK_KEY,WILLING_TO_SPORT_KEY]];
        
    }
    return _dateKeyArry;
    
}


-(NSMutableArray * )bigArry
{
    if (!_bigArry) {
        _bigArry = [[NSMutableArray alloc]initWithArray:@[self.starsArry,self.marryedTimeArry,self.starsArry,self.marryedStatusArry,self.haveChildArry,self.loveHistoryArry,self.starsArry,self.workArry,self.starsArry,self.howTallArry,self.weightArry,self.blodKindArry,self.starsArry,self.starsArry,self.starsArry,self.mingZuArry,self.xinYangArry,self.smokArry,self.drunkArry]];
    }
    return _bigArry;
}

-(NSMutableArray *)JinJiArry
{
    if (!_JinJiArry) {
        _JinJiArry = [[NSMutableArray alloc]initWithArray:@[self.yearEarnArry,self.saveMoneyArry,self.houseArry,self.carPriceArry,self.starsArry]];
    }
    return _JinJiArry;
}

-(NSMutableArray *)zeouArry
{
    if (!_zeouArry) {
        _zeouArry = [[NSMutableArray alloc]initWithArray:@[self.marryedTimeArry,self.starsArry,self.studyLevelArry,self.oldArry,self.howTallArry,self.looklikeArry,self.starsArry,self.yearEarnArry,self.marryedStatusArry,self.afterMarryArry,self.findOtherArry,self.drunkArry,self.smokArry]];
        
    }
    return _zeouArry;
}

-(NSMutableArray *)HunYinGNArry
{
    if (!_HunYinGNArry) {
        _HunYinGNArry = [[NSMutableArray alloc]initWithArray:@[self.hunQianZiNvArry,self.weiAiQiaoQianArry,self.hunYinTaiDuArry,self.hunHouGuanXiArry,self.hunHouYXmiYouArry,self.hunHouWantChildArry,self.hunHouJiaoYuArry,self.findOneNightArry,self.hunHouJiaWuArry,self.JiaTingWeiShengArry,self.hunHouBuyGNArry,self.DuiFangFamilyImpArry,self.workTaiduArry,self.likePetArry,self.hunHouWithParentsArry,self.hunHouFriendQuanArry,self.thinkLianRenImpArry,self.zuiKanzhongArry]];
    }
    return _HunYinGNArry;
}

-(NSMutableArray *)QinMiArry
{
    if (!_QinMiArry) {
        _QinMiArry = [[NSMutableArray alloc]initWithArray:@[self.tinkYourSexArry,self.thikSexWhereArry,self.sexEXPArry,self.duiDaiXinAiArry,self.xinAiNewZiShiArry,self.sexAndLoveArry,self.findOtherArry,self.diaoDongXingZhiArry,self.CanJieShouArry]];
        
    }
    return _QinMiArry;
}

-(NSMutableArray *)YueHuiArry
{
    if (!_YueHuiArry) {
        _YueHuiArry = [[NSMutableArray alloc]initWithArray:@[self.firstMeetDoArry,self.datePayArry,self.datePlaceArry,self.dateRomanceArry,self.interestTalkArry,self.likeSportArry]];
    }
    return _YueHuiArry;
}



///婚前子女
-(NSMutableArray *)hunQianZiNvArry
{
    if(!_hunQianZiNvArry)
    {
        _hunQianZiNvArry = [NSMutableArray new];
        _hunQianZiNvArry = [[NSMutableArray alloc]initWithArray:@[@"我没有你有没关系",@"我没有你必须没有",@"不限"]];
    }
    return _hunQianZiNvArry ;
}
///为爱迁居
-(NSMutableArray *)weiAiQiaoQianArry
{
    if(!_weiAiQiaoQianArry)
    {
        _weiAiQiaoQianArry= [NSMutableArray new];
        _weiAiQiaoQianArry = [[NSMutableArray alloc]initWithArray:@[@"愿意",@"不愿意",@"关系稳定可考虑",@"为爱我愿跟你走",@"你搬来我这里吧"]];
    }
    return _weiAiQiaoQianArry ;
}
///婚姻态度
-(NSMutableArray *)hunYinTaiDuArry
{
    if(!_hunYinTaiDuArry)
    {
        _hunYinTaiDuArry = [NSMutableArray new];
        _hunYinTaiDuArry = [[NSMutableArray alloc]initWithArray:@[@"结婚就不会离婚",@"尽量维持长久",@"相信白头偕老",@"不在乎天长地久，只在乎曾经拥有",@"顺其自然"]];
    }
    return _hunYinTaiDuArry ;
}
///婚后关系
-(NSMutableArray *)hunHouGuanXiArry
{
    if(!_hunHouGuanXiArry)
    {
        _hunHouGuanXiArry = [NSMutableArray new];
        _hunHouGuanXiArry = [[NSMutableArray alloc]initWithArray:@[@"亲密无间，部分彼此尊重",@"给对方一定私人空间",@"完全依赖对方",@"彼此关心保持距离"]];
    }
    return _hunHouGuanXiArry ;
}
///婚后异性密友
-(NSMutableArray *)hunHouYXmiYouArry
{
    if(!_hunHouYXmiYouArry)
    {
        _hunHouYXmiYouArry= [NSMutableArray new];
        _hunHouYXmiYouArry = [[NSMutableArray alloc]initWithArray:@[@"坚决放弃不再来往",@"偶尔保持联系",@"你密友就是我密友",@"各自互不干涉",@"可以保持但必须让我知道",@"可以有但是不能冷落我"]];
    }
    return _hunHouYXmiYouArry ;
}
///婚后想要小孩吗
-(NSMutableArray *)hunHouWantChildArry
{
    if(!_hunHouWantChildArry)
    {
        _hunHouWantChildArry = [NSMutableArray new];
        _hunHouWantChildArry = [[NSMutableArray alloc]initWithArray:@[@"立即就要",@"顺其自然",@"暂时不要，先过两人世界"]];
    }
    return _hunHouWantChildArry ;
}
///婚后教育小孩
-(NSMutableArray *)hunHouJiaoYuArry
{
    if(!_hunHouJiaoYuArry)
    {
        _hunHouJiaoYuArry = [NSMutableArray new];
        _hunHouJiaoYuArry = [[NSMutableArray alloc]initWithArray:@[@"反对打小孩，强调教育",@"过分会打，但不会伤到身体",@"轻轻打，给予小小警告"]];
    }
    return _hunHouJiaoYuArry ;
}
///发现另一半有一夜情怎处理
-(NSMutableArray *)findOneNightArry
{
    if(!_findOneNightArry)
    {
        _findOneNightArry = [NSMutableArray new];
        _findOneNightArry= [[NSMutableArray alloc]initWithArray:@[@"坚决离婚不会再在一起",@"偶尔犯错改正，会原谅",@"我也找一夜情，以牙还牙",@"继续一起，但不会再信任"]];
    }
    return _findOneNightArry ;
}
///婚后家务
-(NSMutableArray *)hunHouJiaWuArry
{
    if(!_hunHouJiaWuArry)
    {
        _hunHouJiaWuArry = [NSMutableArray new];
        _hunHouJiaWuArry = [[NSMutableArray alloc]initWithArray:@[@"我全部承担",@"两人一起承担，不分彼此",@"我承担多一点，你承担少一点",@"我承担少一点，你承担多一点"]];
    }
    return _hunHouJiaWuArry ;
}
///家庭卫生
-(NSMutableArray *)JiaTingWeiShengArry
{
    if(!_JiaTingWeiShengArry)
    {
        _JiaTingWeiShengArry = [NSMutableArray new];
        _JiaTingWeiShengArry = [[NSMutableArray alloc]initWithArray:@[@"只要别脏，乱一点没关系",@"只要别乱，脏一点没关系",@"不能容忍脏和乱，要干净整洁",@"不太关心"]];
    }
    return _JiaTingWeiShengArry ;
}
///婚后消费观念
-(NSMutableArray *)hunHouBuyGNArry
{
    if(!_hunHouBuyGNArry)
    {
        _hunHouBuyGNArry = [NSMutableArray new];
        _hunHouBuyGNArry = [[NSMutableArray alloc]initWithArray:@[@"存一些花一些",@"有多少花多少",@"除非很需要，一般不花钱",@"超前消费"]];
    }
    return _hunHouBuyGNArry ;
}
///对方家庭重要吗
-(NSMutableArray *)DuiFangFamilyImpArry
{
    if(!_DuiFangFamilyImpArry)
    {
        _DuiFangFamilyImpArry = [NSMutableArray new];
        _DuiFangFamilyImpArry = [[NSMutableArray alloc]initWithArray:@[@"很重要。希望有地位和财富",@"不重要，只要两人真心相爱",@"不太重要",@"不能负担太重",@"关心是否能和对方家庭相处得来"]];
    }
    return _DuiFangFamilyImpArry ;
}
///工作态度
-(NSMutableArray *)workTaiduArry
{
    if(!_workTaiduArry)
    {
        _workTaiduArry = [NSMutableArray new];
        _workTaiduArry = [[NSMutableArray alloc]initWithArray:@[@"很满意，努力工作",@"知识给别人打工，赚我的钱就行",@"不喜欢，准备换工作",@"向往自由职业，不喜欢朝九晚五工作"]];
    }
    return _workTaiduArry;
}
///喜欢养宠物吗
-(NSMutableArray *)likePetArry
{
    if(!_likePetArry)
    {
        _likePetArry = [NSMutableArray new];
        _likePetArry = [[NSMutableArray alloc]initWithArray:@[@"不喜欢，对方最好也别养",@"喜欢，希望对方也喜欢",@"只接收自己喜欢养的宠物",@"可以养。但是别让我照顾"]];
    }
    return _likePetArry ;
}
///婚后跟父母的家庭关系
-(NSMutableArray *)hunHouWithParentsArry
{
    if(!_hunHouWithParentsArry)
    {
        _hunHouWithParentsArry = [NSMutableArray new];
        _hunHouWithParentsArry = [[NSMutableArray alloc]initWithArray:@[@"可以和自己父母住",@"可以和对方父母住",@"两口子自己住，常回家看看",@"跟双方父母一边住一段时间"]];
    }
    return _hunHouWithParentsArry ;
}
///希望婚后朋友生活圈
-(NSMutableArray *)hunHouFriendQuanArry
{
    if(!_hunHouFriendQuanArry)
    {
        _hunHouFriendQuanArry = [NSMutableArray new];
        _hunHouFriendQuanArry = [[NSMutableArray alloc]initWithArray:@[@"喜欢和大家庭住在一起",@"很多哥们闺蜜",@"两三好友",@"保持彼此婚前的生活圈",@"两人世界"]];
    }
    return _hunHouFriendQuanArry ;
}
///认为两人相处最重要是(多选)
-(NSMutableArray *)thinkLianRenImpArry
{
    if(!_thinkLianRenImpArry)
    {
        _thinkLianRenImpArry = [NSMutableArray new];
        _thinkLianRenImpArry = [[NSMutableArray alloc]initWithArray:@[@"坦诚相待",@"彼此充分了解",@"能为对方分忧",@"彼此依赖",@"相互给予一定空间",@"天天相守",@"保持浪漫",@"共同的信仰",@"互相信任",@"善待对方",@"能彼此包容",@"相当教育水平",@"从不互相责怪"]];
    }
    return _thinkLianRenImpArry ;
}
///最看重对方那一点(多选)
-(NSMutableArray *)zuiKanzhongArry
{
    if(!_zuiKanzhongArry)
    {
        _zuiKanzhongArry = [NSMutableArray new];
        _zuiKanzhongArry = [[NSMutableArray alloc]initWithArray:@[@"事业有成",@"家庭背景",@"真诚",@"感觉",@"头脑聪明",@"外表",@"幽默感",@"前途",@"善解人意",@"个性",@"良心",@"性能力",@"经济能力",@"学识"]];
    }
    return _zuiKanzhongArry ;
}
///您认为自己性感吗？
-(NSMutableArray *)tinkYourSexArry
{
    if(!_tinkYourSexArry)
    {
        _tinkYourSexArry = [NSMutableArray new];
        _tinkYourSexArry = [[NSMutableArray alloc]initWithArray:@[@"很性感，一定能吸引到你",@"虽然一般，但我有独特气质",@"我不清楚",@"朋友说我很性感"]];
    }
    return _tinkYourSexArry ;
}
///认为性感主要体现在那些方面？
-(NSMutableArray *)thikSexWhereArry
{
    if(!_thikSexWhereArry)
    {
        _thikSexWhereArry = [NSMutableArray new];
        _thikSexWhereArry = [[NSMutableArray alloc]initWithArray:@[@"魔鬼般的身材",@"独特的气质",@"漂亮的脸蛋",@"迷人的声音",@"幽默的谈吐",@"语言和表情"]];
    }
    return _thikSexWhereArry ;
}
///性爱方面经验
-(NSMutableArray *)sexEXPArry
{
    if(!_sexEXPArry)
    {
        _sexEXPArry = [NSMutableArray new];
        _sexEXPArry = [[NSMutableArray alloc]initWithArray:@[@"从来没有",@"偶尔有过",@"丰富的经验",@"过来人"]];
    }
    return _sexEXPArry ;
}
///对待性爱态度
-(NSMutableArray *)duiDaiXinAiArry
{
    if(!_duiDaiXinAiArry)
    {
        _duiDaiXinAiArry = [NSMutableArray new];
        _duiDaiXinAiArry = [[NSMutableArray alloc]initWithArray:@[@"人生最美妙的事情",@"喜欢才需要",@"很平常的事情",@"宁缺毋滥",@"不太喜欢性爱"]];
    }
    return _duiDaiXinAiArry ;
}
///性爱中尝试新姿势态度
-(NSMutableArray *)xinAiNewZiShiArry
{
    if(!_xinAiNewZiShiArry)
    {
        _xinAiNewZiShiArry = [NSMutableArray new];
        _xinAiNewZiShiArry = [[NSMutableArray alloc]initWithArray:@[@"羞于主动尝试，很愿意配合",@"传统保守",@"只要喜欢，愿意试试",@"只愿意正常的方式",@"没有我没尝试过的",@"拒绝尝试"]];
    }
    return _xinAiNewZiShiArry ;
}
///认为性和爱的关系
-(NSMutableArray *)sexAndLoveArry
{
    if(!_sexAndLoveArry)
    {
        _sexAndLoveArry = [NSMutableArray new];
        _sexAndLoveArry = [[NSMutableArray alloc]initWithArray:@[@"爱和性可以分开",@"有爱才有性",@"有性后，慢慢也能有爱 "]];
    }
    return _sexAndLoveArry ;
}

///对方调动你的性致主要是(多选)
-(NSMutableArray *)diaoDongXingZhiArry
{
    if(!_diaoDongXingZhiArry)
    {
        _diaoDongXingZhiArry = [NSMutableArray new];
        _diaoDongXingZhiArry = [[NSMutableArray alloc]initWithArray:@[@"魔鬼的身材",@"讲黄段子",@"健壮的身体",@"绕痒痒",@"甜言蜜语",@"贴身舞",@"湿吻",@"充分的前戏",@"性爱电影",@"古典音乐",@"香味",@"奇装异服",@"角色扮演",@"辅助工具",@"高个子",@"亲热的时候蒙上眼睛",@"被偷窥",@"野外",@"烛光下",@"胡子",@"情色小说"]];
    }
    return _diaoDongXingZhiArry ;
}
///能够接受伴侣(多选)
-(NSMutableArray *)CanJieShouArry
{
    if(!_CanJieShouArry)
    {
        _CanJieShouArry = [NSMutableArray new];
        _CanJieShouArry = [[NSMutableArray alloc]initWithArray:@[@"一起看性爱电影",@"角色扮演",@"一夜情",@"限普通正常的方式",@"电话性爱",@"同性恋",@"只要不太奇怪都可以",@"网上性爱聊天"]];
    }
    return _CanJieShouArry ;
}
///初次约会希望做什么(多选)
-(NSMutableArray *)firstMeetDoArry
{
    if(!_firstMeetDoArry)
    {
        _firstMeetDoArry = [NSMutableArray new];
        _firstMeetDoArry = [[NSMutableArray alloc]initWithArray:@[@"见面先互相了解",@"一起吃饭喝茶聊天",@"唱K或逛街或跳舞或看电影",@"如果喜欢可以牵手",@"如果可以希望拥抱并接吻",@"如果可以不排除更大的可能"]];
    }
    return _firstMeetDoArry ;
}

///约会谁买单
-(NSMutableArray *)datePayArry
{
    if(!_datePayArry)
    {
        _datePayArry = [NSMutableArray new];
        _datePayArry = [[NSMutableArray alloc]initWithArray:@[@"男方买单",@"女方买单",@"AA制",@"随便谁买单"]];
    }
    return _datePayArry ;
}
///喜欢的约会场所(多选)
-(NSMutableArray *)datePlaceArry
{
    if(!_datePlaceArry)
    {
        _datePlaceArry = [NSMutableArray new];
        _datePlaceArry = [[NSMutableArray alloc]initWithArray:@[@"家中",@"海滩",@"户外大自然",@"街上和商场",@"公园",@"KTV",@"迪厅",@"茶室",@"咖啡厅",@"酒吧",@"球赛场",@"电影院",@"剧院",@"图书馆",@"展览厅",@"宾馆酒店",@"夜总会"]];
    }
    return _datePlaceArry ;
}
///交往中最浪漫的事情(多选)
-(NSMutableArray *)dateRomanceArry
{
    if(!_dateRomanceArry)
    {
        _dateRomanceArry = [NSMutableArray new];
        _dateRomanceArry = [[NSMutableArray alloc]initWithArray:@[@"写情书",@"小礼物",@"不期而遇",@"牵手",@"纪念日",@"看日出和日落",@"慢舞",@"同听一首歌",@"一起看演出",@"一起做饭",@"一首情诗",@"乡间漫步",@"月光下跳舞",@"烛光晚餐",@"鲜花",@"沙滩戏沙",@"午夜狂欢",@"音乐节",@"一个惊喜",@"野炊",@"一处秘密约会点",@"见面拥抱和亲吻"]];
    }
    return _dateRomanceArry ;
}

///感兴趣话题(多选)
-(NSMutableArray *)interestTalkArry
{
    if(!_interestTalkArry)
    {
        _interestTalkArry = [NSMutableArray new];
        _interestTalkArry = [[NSMutableArray alloc]initWithArray:@[@"文学诗歌",@"绘画音乐",@"旅行",@"电影",@"美剧",@"韩剧",@"国内电视剧",@"游戏",@"网上生活",@"明星追星",@"时装和穿戴",@"汽车",@"购物",@"星座",@"黄段子",@"养宠物",@"经济和商业",@"金融股票",@"时事新闻",@"工作和家庭生活",@"宗教",@"哲学"]];
    }
    return _interestTalkArry;
}
///愿意参与的体育运动(多选)
-(NSMutableArray *)likeSportArry
{
    if(!_likeSportArry)
    {
        _likeSportArry = [NSMutableArray new];
        _likeSportArry = [[NSMutableArray alloc]initWithArray:@[@"篮球",@"排球",@"羽毛球",@"滑冰",@"骑行",@"乒乓球",@"足球",@"划船",@"网球",@"高尔夫",@"爬山",@"保龄球",@"户外探险",@"健美",@"跑步",@"滑雪",@"瑜伽",@"游泳",@"子主题",@"散步"]];
    }
    return _likeSportArry;
}
/////
//-(NSMutableArray *)
//{
//    if(!_)
//    {
//        _ = [NSMutableArray new];
//        _ = [[NSMutableArray alloc]initWithArray:@[]];
//    }
//    return _ ;
//}
/////
//-(NSMutableArray *)
//{
//    if(!_)
//    {
//        _ = [NSMutableArray new];
//        _ = [[NSMutableArray alloc]initWithArray:@[]];
//    }
//    return _ ;
//}
/////
//-(NSMutableArray *)
//{
//    if(!_)
//    {
//        _ = [NSMutableArray new];
//        _ = [[NSMutableArray alloc]initWithArray:@[]];
//    }
//    return _ ;
//}
/////
//-(NSMutableArray *)
//{
//    if(!_)
//    {
//        _ = [NSMutableArray new];
//        _ = [[NSMutableArray alloc]initWithArray:@[]];
//    }
//    return _ ;
//}
//
/////
//-(NSMutableArray *)
//{
//    if(!_)
//    {
//        _ = [NSMutableArray new];
//        _ = [[NSMutableArray alloc]initWithArray:@[]];
//    }
//    return _ ;
//}
/////
//-(NSMutableArray *)
//{
//    if(!_)
//    {
//        _ = [NSMutableArray new];
//        _ = [[NSMutableArray alloc]initWithArray:@[]];
//    }
//    return _ ;
//}
/////
//-(NSMutableArray *)
//{
//    if(!_)
//    {
//        _ = [NSMutableArray new];
//        _ = [[NSMutableArray alloc]initWithArray:@[]];
//    }
//    return _ ;
//}
//
/////
//-(NSMutableArray *)
//{
//    if(!_)
//    {
//        _ = [NSMutableArray new];
//        _ = [[NSMutableArray alloc]initWithArray:@[]];
//    }
//    return _ ;
//}
/////
//-(NSMutableArray *)
//{
//    if(!_)
//    {
//        _ = [NSMutableArray new];
//        _ = [[NSMutableArray alloc]initWithArray:@[]];
//    }
//    return _ ;
//}
/////
//-(NSMutableArray *)
//{
//    if(!_)
//    {
//        _ = [NSMutableArray new];
//        _ = [[NSMutableArray alloc]initWithArray:@[]];
//    }
//    return _ ;
//}

///年收入
-(NSMutableArray *)yearEarnArry
{
    if (!_yearEarnArry) {
        _yearEarnArry = [NSMutableArray new];
        _yearEarnArry = [[NSMutableArray alloc]initWithArray:@[@"10w以下",@"10w~20w",@"20w~30w",@"30w~40w",@"40w~50w",@"50w~60w",@"60w~70w",@"70w~100w",@"100w以上"]];
    }
    return _yearEarnArry;
}


///存款情况
-(NSMutableArray *)saveMoneyArry
{
    if (!_saveMoneyArry) {
        _saveMoneyArry = [NSMutableArray new];
        _saveMoneyArry = [[NSMutableArray alloc]initWithArray:@[@"一般，有点点存款",@"我的经济条件足够过上稳定和好的生活",@"现在没有，以后会有",@"比较糟糕"]];
    }
    return _saveMoneyArry;
}
///房产情况
-(NSMutableArray *)houseArry
{
    if (!_houseArry) {
        _houseArry = [NSMutableArray new];
        _houseArry = [[NSMutableArray alloc]initWithArray:@[@"租房",@"计划购房",@"已购房，按揭中",@"和父母合住"]];
    }
    return _houseArry;
}
///私家车价格
-(NSMutableArray *)carPriceArry
{
    if (!_carPriceArry) {
        _carPriceArry = [NSMutableArray new];
        _carPriceArry = [[NSMutableArray alloc]initWithArray:@[@"没有",@"10w以下",@"10w~20w",@"20w~30W",@"30w~40w",@"40w~60w",@"60w~100w",@"100w以上"]];
    }
    return _carPriceArry;
}



///期望结婚时间数组
-(NSMutableArray *)marryedTimeArry
{
    if (!_marryedTimeArry) {
        _marryedTimeArry = [NSMutableArray new];
        _marryedTimeArry = [[NSMutableArray alloc]initWithArray:@[@"半年内",@"一年内",@"两年内"]];
    }
    return _marryedTimeArry;
}
///身高尺寸
-(NSMutableArray *)howTallArry
{
    if (!_howTallArry) {
        _howTallArry = [NSMutableArray new];
        for (int i = 140; i<=200; i++) {
            NSString * howTallStr = [NSString stringWithFormat:@"%dcm",i];
            [_howTallArry addObject:howTallStr];
        }
        
    }
    return _howTallArry;
}
///年收入
-(NSMutableArray*)yearMoneyArry
{
    if (!_yearMoneyArry) {
        _yearMoneyArry = [[NSMutableArray alloc]initWithArray:@[@"10W以下",@"10W~20W",@"20W~30W",@"30W~50W",@"50W~100W",@"1OOW以上"]];
    }
    return _yearMoneyArry;
}

///婚姻状况
-(NSMutableArray*)marryedStatusArry
{
    if (!_marryedStatusArry) {
        _marryedStatusArry = [[NSMutableArray alloc]initWithArray:@[@"未婚",@"离异",@"丧偶"]];
    }
    return _marryedStatusArry;
}
///职业
-(NSMutableArray *)workArry
{
    if (!_workArry) {
        _workArry = [[NSMutableArray alloc]initWithArray:@[@"公务员",@"教师",@"IT业",@"个体户",@"企业家",@"公司管理",@"金融业",@"科研",@"医生",@"护士",@"自由业",@"艺术",@"撰稿人",@"电视媒体",@"设计师",@"律师",@"服务员",@"财务",@"司机",@"技工",@"务农",@"运输",@"社会活动",@"贸易",@"军人",@"其它"]];
    }
    return _workArry;
}
///子女
-(NSMutableArray*)haveChildArry
{
    if (!_haveChildArry) {
        _haveChildArry = [[NSMutableArray alloc]initWithArray:@[@"没有",@"有,但不在一起",@"有,住在一起"]];
        
    }
    return _haveChildArry;
}
//恋爱经历
-(NSMutableArray*)loveHistoryArry
{
    if (!_loveHistoryArry) {
        _loveHistoryArry = [[NSMutableArray alloc]initWithArray:@[@"从来没有",@"有过",@"很多"]];
        
    }
    return _loveHistoryArry;
}

///学历
-(NSMutableArray*)studyLevelArry
{
    if (!_studyLevelArry) {
        _studyLevelArry = [[NSMutableArray alloc]initWithArray:@[@"初中",@"高中",@"大专",@"本科",@"硕士",@"博士",@"博士后"]];
        
    }
    return _studyLevelArry;
}

///星座
-(NSMutableArray*)starsArry
{
    if (!_starsArry) {
        _starsArry = [[NSMutableArray alloc]initWithArray:@[@""]];
        
    }
    return _starsArry;
}

///体重
-(NSMutableArray*)weightArry
{
    if (!_weightArry) {
        _weightArry = [NSMutableArray new];
        for (int i = 30; i<=200; i++) {
            NSString * weightStr = [NSString stringWithFormat:@"%dkg",i];
            [_weightArry addObject:weightStr];
        }
    }
    return _weightArry;
}

///年龄
-(NSMutableArray *)oldArry
{
    if (!_oldArry) {
        _oldArry = [NSMutableArray new];
        for (int i =18; i<120; i++) {
            NSString * oldStr = [NSString stringWithFormat:@"%d岁",i];
            [_oldArry addObject:oldStr];
        }
    }
    return _oldArry;
}

///婚后要求
-(NSMutableArray*)afterMarryArry
{
    if (!_afterMarryArry) {
        _afterMarryArry = [[NSMutableArray alloc]initWithArray:@[@"过两人世界",@"积极要小孩",@"介意和对方父母同住",@"不介意和对方父母同住",@"暂不要小孩"]];
    }
    return _afterMarryArry;
}

///寻找的她（他）应该是一位(多选)
-(NSMutableArray *)findOtherArry{
    if (!_findOtherArry) {
        _findOtherArry = [[NSMutableArray alloc]initWithArray:@[@"幽默有趣的伴侣",@"清洁安全的性爱",@"传统的性爱伴侣",@"私密情人",@"温柔伴侣",@"性幻想对象",@"经验丰富的伴侣",@"性爱老师",@"愿意和我一起去尝试新东西",@"没有占有欲，不嫉妒",@"思想开放的",@"网上性伴侣"]];
    }
    return _findOtherArry;
}

///血型
-(NSMutableArray*)blodKindArry
{
    if (!_blodKindArry) {
        _blodKindArry = [[NSMutableArray alloc]initWithArray:@[@"A型",@"B型",@"AB型",@"O型",@"其它"]];
        
    }
    return _blodKindArry;
}

/////籍贯
//-(NSMutableArray*)JiGuanArry
//{
//    if (!_JiGuanArry) {
//        _JiGuanArry = [[NSMutableArray alloc]initWithArray:nil];
//        
//    }
//    return _JiGuanArry;
//}

///外形Arry
-(NSMutableArray *)looklikeArry
{
    if (!_looklikeArry) {
        
        if ([[Tools getValueFromNSUserDefaultsByKey:@"Mysex"] isEqualToString:@"男"]) {
            _looklikeArry = [[NSMutableArray alloc]initWithArray:@[@"美女",@"淑女",@"苗条",@"丰腴",@"高挑",@"丰满",@"纤细 ",@"单眼皮",@"双眼皮",@"匀称",@"廋小",@"成熟",@"性感"]];
        }else{
            _looklikeArry = [[NSMutableArray alloc]initWithArray:@[@"正太",@"小鲜肉",@"直男",@"阳光",@"高大",@"魁梧",@"很胖",@"单眼皮",@"双眼皮",@"匀称",@"廋小",@"成熟",@"性感"]];
        }
    }
    return _looklikeArry;
}


///民族
-(NSMutableArray*)mingZuArry
{
    if (!_mingZuArry) {
        _mingZuArry = [[NSMutableArray alloc]initWithArray:@[@"汉族",@"回族",@"白族",@"傣族",@"满族",@"苗族",@"怒族",@"黎族",@"京族",@"羌族",@"水族",@"侗族",@"土族",@"佤族",@"瑶族",@"畲族",@"彝族",@"壮族",@"藏族",@"阿昌族",@"保安族",@"朝鲜族",@"布朗族",@"布依族",@"德昂族",@"东乡族",@"独龙族",@"高山族",@"哈尼族",@"珞巴族",@"拉祜族",@"僳僳族",@"仡佬族",@"赫哲族",@"景颇族",@"基诺族",@"蒙古族",@"纳西族",@"撒拉族",@"毛南族",@"锡伯族",@"土家族",@"仫佬族",@"普米族",@"门巴族",@"裕固族",@"达斡尔族",@"塔吉克族",@"俄罗斯族",@"鄂伦春族",@"鄂温克族",@"哈萨克族",@"塔塔尔族",@"维吾尔族",@"柯尔克孜族",@"乌孜别克族"]];
        
    }
    return _mingZuArry;
}

///信仰
-(NSMutableArray*)xinYangArry
{
    if (!_xinYangArry) {
        _xinYangArry = [[NSMutableArray alloc]initWithArray:@[@"基督教",@"佛教",@"道教",@"伊斯兰教",@"无信仰",@"其它"]];
    }
    return _xinYangArry;
}

///吸烟
-(NSMutableArray*)smokArry
{
    if (!_smokArry) {
        _smokArry = [[NSMutableArray alloc]initWithArray:@[@"从不",@"偶尔",@"一点点",@"经常"]];
        
    }
    return _smokArry;
}

///喝酒
-(NSMutableArray*)drunkArry
{
    if (!_drunkArry) {
        _drunkArry = [[NSMutableArray alloc]initWithArray:@[@"从不",@"偶尔",@"一点点",@"经常"]];
        
    }
    return _drunkArry;
}

+(NSString *)calculateConstellationWithMonth:(NSInteger)month day:(NSInteger)day
{
    NSString *astroString = @"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯";
    NSString *astroFormat = @"102123444543";
    NSString *result;
    
    if (month<1 || month>12 || day<1 || day>31){
        return @"错误日期格式!";
    }
    
    if(month==2 && day>29)
    {
        return @"错误日期格式!!";
    }else if(month==4 || month==6 || month==9 || month==11) {
        if (day>30) {
            return @"错误日期格式!!!";
        }
    }
    
    result=[NSString stringWithFormat:@"%@",[astroString substringWithRange:NSMakeRange(month*2-(day < [[astroFormat substringWithRange:NSMakeRange((month-1), 1)] intValue] - (-19))*2,2)]];
    
    return [NSString stringWithFormat:@"%@座",result];
}
-(void)saveTheStrWithStr:(NSString *)myStr andKeyStr:(NSString *)keyStr
{
    NSMutableDictionary * readDic = [NSMutableDictionary new];
    NSMutableDictionary * infoDic = [Tools getValueFromNSUserDefaultsByKey:MY_INFO_DIC];
    readDic = [NSMutableDictionary dictionaryWithDictionary:infoDic];
    [readDic setObject:myStr forKey:keyStr];
    if (readDic != nil) {
        NSDictionary *finialDic = [NSDictionary new];
        finialDic = [NSDictionary dictionaryWithDictionary:readDic];
        [Tools syncNSUserDeafaultsByKey:MY_INFO_DIC withValue:(NSDictionary *)finialDic];
    }
}
///存储经济状况
-(void)saveTheMoneyStrWithStr:(NSString *)myStr andKeyStr:(NSString *)keyStr
{
    NSMutableDictionary * readDic = [NSMutableDictionary new];
    NSMutableDictionary * infoDic = [Tools getValueFromNSUserDefaultsByKey:MY_MONEY_DIC];
    readDic = [NSMutableDictionary dictionaryWithDictionary:infoDic];
    [readDic setObject:myStr forKey:keyStr];
    if (readDic != nil) {
        NSDictionary *finialDic = [NSDictionary new];
        finialDic = [NSDictionary dictionaryWithDictionary:readDic];
        [Tools syncNSUserDeafaultsByKey:MY_MONEY_DIC withValue:(NSDictionary *)finialDic];
    }
}

-(NSMutableDictionary *)readTheNetUserDic
{
    NSMutableDictionary * userDic = [NSMutableDictionary new];
    
    NSMutableDictionary * infoDic = [Tools getValueFromNSUserDefaultsByKey:MY_NET_INFO_DIC];
    NSLog(@"infoDic === %@",infoDic);
    userDic = [NSMutableDictionary dictionaryWithDictionary:infoDic];
    
    return userDic;
}

-(NSMutableDictionary *)readTheUserDescDic
{
    NSMutableDictionary * userDic = [NSMutableDictionary new];
    
    NSMutableDictionary * infoDic = [Tools getValueFromNSUserDefaultsByKey:MY_USERDESC_DIC];
    NSLog(@"infoDic === %@",infoDic);
    userDic = [NSMutableDictionary dictionaryWithDictionary:infoDic];
    
    return userDic;
}
///读取用户基本资料
-(NSMutableDictionary *)readTheUserDic
{
    NSMutableDictionary * userDic = [NSMutableDictionary new];
    
     NSMutableDictionary * infoDic = [Tools getValueFromNSUserDefaultsByKey:MY_INFO_DIC];
    NSLog(@"infoDic === %@",infoDic);
    userDic = [NSMutableDictionary dictionaryWithDictionary:infoDic];
    
    return userDic;
}
///读取用户经济状况
-(NSMutableDictionary *)readTheMoneyDic
{
    NSMutableDictionary * userDic = [NSMutableDictionary new];
    
    NSMutableDictionary * infoDic = [Tools getValueFromNSUserDefaultsByKey:MY_MONEY_DIC];
    NSLog(@"infoDic === %@",infoDic);
    userDic = [NSMutableDictionary dictionaryWithDictionary:infoDic];
    
    return userDic;
}

-(NSMutableDictionary *)readOtherUserDic
{
    NSMutableDictionary * userDic = [NSMutableDictionary new];
    
    NSMutableDictionary * infoDic = [Tools getValueFromNSUserDefaultsByKey:OTHER_INFO_DIC];
    NSLog(@"infoDic === %@",infoDic);
    userDic = [NSMutableDictionary dictionaryWithDictionary:infoDic];
    
    return userDic;
}

-(void)saveTheOtherPeopleStrWithStr:(NSString *)myStr andKeyStr:(NSString *)keyStr
{
    NSMutableDictionary * readDic = [NSMutableDictionary new];
    NSMutableDictionary * infoDic = [Tools getValueFromNSUserDefaultsByKey:OTHER_INFO_DIC];
    readDic = [NSMutableDictionary dictionaryWithDictionary:infoDic];
    [readDic setObject:myStr forKey:keyStr];
    if (readDic != nil) {
        NSDictionary *finialDic = [NSDictionary new];
        finialDic = [NSDictionary dictionaryWithDictionary:readDic];
        [Tools syncNSUserDeafaultsByKey:OTHER_INFO_DIC withValue:(NSDictionary *)finialDic];
    }
}



-(void)saveTheNetDic:(id)returnData
{
    NSMutableDictionary * newdic = [NSMutableDictionary new];
    NSMutableDictionary * changeDic = [NSMutableDictionary new];
    newdic = [NSMutableDictionary dictionaryWithDictionary:returnData];
    for (NSString*s in [newdic allKeys]) {
        if (([newdic[s] isEqual:[NSNull null]])||([newdic[s] isKindOfClass:[NSNull class]])) {
            [newdic setObject:@"" forKey:s];
        }
    }
    [changeDic addEntriesFromDictionary:newdic];
    NSDictionary *finialDic = [NSDictionary new];
    finialDic = [NSDictionary dictionaryWithDictionary:changeDic];
    [Tools syncNSUserDeafaultsByKey:MY_NET_INFO_DIC withValue:(NSDictionary *)finialDic];

}

///存储基本资料的信息
-(void)saveTheUserBaseDic:(id)returnData
{
    NSMutableDictionary * newdic = [NSMutableDictionary new];
    NSMutableDictionary * changeDic = [NSMutableDictionary new];
    newdic = [NSMutableDictionary dictionaryWithDictionary:returnData];
    for (NSString*s in [newdic allKeys]) {
        if (([newdic[s] isEqual:[NSNull null]])||([newdic[s] isKindOfClass:[NSNull class]])) {
            [newdic setObject:@"" forKey:s];
        }
    }
    [changeDic addEntriesFromDictionary:newdic];
    NSDictionary *finialDic = [NSDictionary new];
    finialDic = [NSDictionary dictionaryWithDictionary:changeDic];
    [Tools syncNSUserDeafaultsByKey:MY_INFO_DIC withValue:(NSDictionary *)finialDic];
    
}


-(void)saveTheUserDescDic:(id)returnData
{
    NSMutableDictionary * newdic = [NSMutableDictionary new];
    NSMutableDictionary * changeDic = [NSMutableDictionary new];
    newdic = [NSMutableDictionary dictionaryWithDictionary:returnData];
    for (NSString*s in [newdic allKeys]) {
        if (([newdic[s] isEqual:[NSNull null]])||([newdic[s] isKindOfClass:[NSNull class]])) {
            [newdic setObject:@"" forKey:s];
        }
    }
    [changeDic addEntriesFromDictionary:newdic];
    NSDictionary *finialDic = [NSDictionary new];
    finialDic = [NSDictionary dictionaryWithDictionary:changeDic];
    [Tools syncNSUserDeafaultsByKey:MY_USERDESC_DIC withValue:(NSDictionary *)finialDic];
}


///存储经济状况的信息
-(void)saveTheMoneyDic:(id)returnData
{
    NSMutableDictionary * newdic = [NSMutableDictionary new];
    NSMutableDictionary * changeDic = [NSMutableDictionary new];
    newdic = [NSMutableDictionary dictionaryWithDictionary:returnData];
    for (NSString*s in [newdic allKeys]) {
        if (([newdic[s] isEqual:[NSNull null]])||([newdic[s] isKindOfClass:[NSNull class]])) {
            [newdic setObject:@"" forKey:s];
        }
    }
    [changeDic addEntriesFromDictionary:newdic];
    NSDictionary *finialDic = [NSDictionary new];
    finialDic = [NSDictionary dictionaryWithDictionary:changeDic];
    [Tools syncNSUserDeafaultsByKey:MY_MONEY_DIC withValue:(NSDictionary *)finialDic];

}

#pragma mark ---------------存储通用三方法
///存储通用方法
-(void)saveTheUsualDic:(id)returnData andWithDicName:(NSString *)DicNameStr
{
    NSMutableDictionary * newdic = [NSMutableDictionary new];
    NSMutableDictionary * changeDic = [NSMutableDictionary new];
    newdic = [NSMutableDictionary dictionaryWithDictionary:returnData];
    for (NSString*s in [newdic allKeys]) {
        if (([newdic[s] isEqual:[NSNull null]])||([newdic[s] isKindOfClass:[NSNull class]])) {
            [newdic setObject:@"" forKey:s];
        }
    }
    [changeDic addEntriesFromDictionary:newdic];
    NSDictionary *finialDic = [NSDictionary new];
    finialDic = [NSDictionary dictionaryWithDictionary:changeDic];
    [Tools syncNSUserDeafaultsByKey:DicNameStr withValue:(NSDictionary *)finialDic];

}
///读取通用方法
-(NSMutableDictionary *)readTheUsualDicWithStr:(NSString *)DicNameStr
{
    NSMutableDictionary * userDic = [NSMutableDictionary new];
    
    NSMutableDictionary * infoDic = [Tools getValueFromNSUserDefaultsByKey:DicNameStr];
    NSLog(@"infoDic === %@",infoDic);
    userDic = [NSMutableDictionary dictionaryWithDictionary:infoDic];
    
    return userDic;
}

///存储每一项信息通用方法
-(void)saveTheusualDicDetialStr:(NSString *)myStr andKeyStr:(NSString *)keyStr andDicName:(NSString*)DicNameStr
{
    NSMutableDictionary * readDic = [NSMutableDictionary new];
    NSMutableDictionary * infoDic = [Tools getValueFromNSUserDefaultsByKey:DicNameStr];
    readDic = [NSMutableDictionary dictionaryWithDictionary:infoDic];
    [readDic setObject:myStr forKey:keyStr];
    if (readDic != nil) {
        NSDictionary *finialDic = [NSDictionary new];
        finialDic = [NSDictionary dictionaryWithDictionary:readDic];
        [Tools syncNSUserDeafaultsByKey:DicNameStr withValue:(NSDictionary *)finialDic];
    }
}








-(NSDictionary*)saveTheNetHFPicDic:(id)returnData
{
    NSMutableDictionary * newdic = [NSMutableDictionary new];
    NSMutableDictionary * changeDic = [NSMutableDictionary new];
    newdic = [NSMutableDictionary dictionaryWithDictionary:returnData];
    for (NSString*s in [newdic allKeys]) {
        if (([newdic[s] isEqual:[NSNull null]])||([newdic[s] isKindOfClass:[NSNull class]])) {
            [newdic setObject:@"" forKey:s];
        }
    }
    [changeDic addEntriesFromDictionary:newdic];
    NSDictionary *finialDic = [NSDictionary new];
    finialDic = [NSDictionary dictionaryWithDictionary:changeDic];
    return finialDic;
    
}
-(NSDictionary*)sendUseDicWithDic:(NSDictionary *)myDic
{
    NSMutableDictionary * newdic = [NSMutableDictionary new];
    NSMutableDictionary * changeDic = [NSMutableDictionary new];
    newdic = [NSMutableDictionary dictionaryWithDictionary:myDic];
    for (NSString*s in [newdic allKeys]) {
        if (([newdic[s] isEqual:[NSNull null]])||([newdic[s] isKindOfClass:[NSNull class]])) {
            [newdic setObject:@"" forKey:s];
        }
    }
    [changeDic addEntriesFromDictionary:newdic];
    NSDictionary *finialDic = [NSDictionary new];
    finialDic = [NSDictionary dictionaryWithDictionary:changeDic];
    
    return finialDic;
}
-(void)saveTheBiggestDic:(id)mydic
{
    NSMutableDictionary * newdic = [NSMutableDictionary new];
    NSMutableDictionary * changeDic = [NSMutableDictionary new];
    NSMutableDictionary * lastDic = [NSMutableDictionary new];
    NSDictionary * lastLastDic = [NSDictionary new];
    NSMutableDictionary * wanmeiDic = [NSMutableDictionary new];
    newdic = [NSMutableDictionary dictionaryWithDictionary:mydic];
    for (NSString*s in [newdic allKeys]) {
        if (([newdic[s] isEqual:[NSNull null]])||([newdic[s] isKindOfClass:[NSNull class]])) {
            [newdic setObject:@"" forKey:s];
        }
    }
    [changeDic addEntriesFromDictionary:newdic];
    NSDictionary *finialDic = [NSDictionary new];
    finialDic = [NSDictionary dictionaryWithDictionary:changeDic];
    NSMutableDictionary * didic = [[NSMutableDictionary alloc]initWithDictionary:finialDic];
    NSMutableDictionary * inDic = [NSMutableDictionary new];
    for (NSString * s in [didic allKeys]) {
        if ([didic[s] isKindOfClass:[NSDictionary class]]) {
            inDic = [NSMutableDictionary dictionaryWithDictionary:didic[s]];
            for (NSString * t in [inDic allKeys]) {
                if (![inDic[t] isKindOfClass:[NSNumber class]]) {
                    if (([inDic[t] isEqual:[NSNull null]])||([inDic[t] isKindOfClass:[NSNull class]])) {
                        [inDic setObject:@"" forKey:t];
                    }
                }
                
            }
            [lastDic addEntriesFromDictionary:inDic];
            lastLastDic = [NSDictionary dictionaryWithDictionary:lastDic];
            [didic setObject:lastLastDic forKey:s];
        }
    }
    [wanmeiDic addEntriesFromDictionary:didic];
    NSDictionary *beautyDic = [NSDictionary new];
    beautyDic = [NSDictionary dictionaryWithDictionary:wanmeiDic];
    
    NSLog(@"finialDic ========== %@",beautyDic);
    NSMutableDictionary * safeDic = [NSMutableDictionary dictionaryWithDictionary:beautyDic];
    NSMutableDictionary * funnDic = [NSMutableDictionary new];
    NSMutableArray * myary = safeDic[@"onlineMedia"];
    NSMutableArray * mysafeArry = [NSMutableArray new];
    if (myary.count >0) {
        for (int i =0; i<myary.count; i++) {
            NSMutableDictionary * safeNewDic = myary[i];
            funnDic = [NSMutableDictionary dictionaryWithDictionary:safeNewDic];
            for (NSString * o in [safeNewDic allKeys]) {
                
                if (![funnDic[o] isKindOfClass:[NSNumber class]]) {
                    if (([funnDic[o] isEqual:[NSNull null]])||([funnDic[o] isKindOfClass:[NSNull class]]|| [funnDic[o] isEqualToString:@"<null>"])) {
                        [funnDic setObject:@"" forKey:o];
                    }
                }
            }
            [mysafeArry addObject:funnDic];
        }
    }
    [safeDic setObject:mysafeArry forKey:@"onlineMedia"];
    
    NSDictionary * finanlSafeDic = [NSDictionary dictionaryWithDictionary:safeDic];
   
    
    NSLog(@"finall ====== %@",finanlSafeDic);
    [Tools syncNSUserDeafaultsByKey:MY_BIGGEST_INFO_DIC withValue:(NSDictionary *)finanlSafeDic];
}

-(void)saveTheOtherBiggestDic:(id)mydic
{
    NSMutableDictionary * newdic = [NSMutableDictionary new];
    NSMutableDictionary * changeDic = [NSMutableDictionary new];
    NSMutableDictionary * lastDic = [NSMutableDictionary new];
    NSDictionary * lastLastDic = [NSDictionary new];
    NSMutableDictionary * wanmeiDic = [NSMutableDictionary new];
    newdic = [NSMutableDictionary dictionaryWithDictionary:mydic];
    for (NSString*s in [newdic allKeys]) {
        if (([newdic[s] isEqual:[NSNull null]])||([newdic[s] isKindOfClass:[NSNull class]])) {
            [newdic setObject:@"" forKey:s];
        }
    }
    [changeDic addEntriesFromDictionary:newdic];
    NSDictionary *finialDic = [NSDictionary new];
    finialDic = [NSDictionary dictionaryWithDictionary:changeDic];
    NSMutableDictionary * didic = [[NSMutableDictionary alloc]initWithDictionary:finialDic];
    NSMutableDictionary * inDic = [NSMutableDictionary new];
    for (NSString * s in [didic allKeys]) {
        if ([didic[s] isKindOfClass:[NSDictionary class]]) {
            inDic = [NSMutableDictionary dictionaryWithDictionary:didic[s]];
            for (NSString * t in [inDic allKeys]) {
                if (![inDic[t] isKindOfClass:[NSNumber class]]) {
                    if (([inDic[t] isEqual:[NSNull null]])||([inDic[t] isKindOfClass:[NSNull class]]|| [inDic[t] isEqualToString:@"<null>"])) {
                        [inDic setObject:@"" forKey:t];
                    }
                }
                
            }
            [lastDic addEntriesFromDictionary:inDic];
            lastLastDic = [NSDictionary dictionaryWithDictionary:lastDic];
            [didic setObject:lastLastDic forKey:s];
        }
    }
    [wanmeiDic addEntriesFromDictionary:didic];
    NSDictionary *beautyDic = [NSDictionary new];
    beautyDic = [NSDictionary dictionaryWithDictionary:wanmeiDic];
    
    NSLog(@"finialDic ========== %@",beautyDic);
    NSMutableDictionary * safeDic = [NSMutableDictionary dictionaryWithDictionary:beautyDic];
    NSMutableDictionary * funnDic = [NSMutableDictionary new];
    NSMutableArray * myary = safeDic[@"onlineMedia"];
    NSMutableArray * mysafeArry = [NSMutableArray new];
    if (myary.count >0) {
        for (int i =0; i<myary.count; i++) {
            NSMutableDictionary * safeNewDic = myary[i];
            funnDic = [NSMutableDictionary dictionaryWithDictionary:safeNewDic];
            for (NSString * o in [safeNewDic allKeys]) {
                
                if (![funnDic[o] isKindOfClass:[NSNumber class]]) {
                    if (([funnDic[o] isEqual:[NSNull null]])||([funnDic[o] isKindOfClass:[NSNull class]]|| [funnDic[o] isEqualToString:@"<null>"])) {
                        [funnDic setObject:@"" forKey:o];
                    }
                }
            }
            [mysafeArry addObject:funnDic];
        }
    }
    [safeDic setObject:mysafeArry forKey:@"onlineMedia"];
    
    NSDictionary * finanlSafeDic = [NSDictionary dictionaryWithDictionary:safeDic];
    
    
    NSLog(@"finall ====== %@",finanlSafeDic);
    [Tools syncNSUserDeafaultsByKey:OTHER_BIGGEST_INFO_DIC withValue:(NSDictionary *)finanlSafeDic];
}

-(NSMutableDictionary *)readBiggestDic
{
    NSMutableDictionary * userDic = [NSMutableDictionary new];
    
    NSMutableDictionary * infoDic = [Tools getValueFromNSUserDefaultsByKey:MY_BIGGEST_INFO_DIC];
    NSLog(@"infoDic === %@",infoDic);
    userDic = [NSMutableDictionary dictionaryWithDictionary:infoDic];
    
    return userDic;
}


@end
